<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="/init.jsp" %>
<jsp:useBean id="DataManager" class="dto.DataManager" scope="application"></jsp:useBean>
<jsp:useBean id="DtoUser" class="dto.DtoUser" scope="application"></jsp:useBean>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Delete user</title>
</head>
<body>
	<%String []id = request.getParameterValues("user");
	for(int i = 0; i < id.length; i++){
		System.out.print(id[i]+" ");
		DataManager.deleteUser(Integer.valueOf(id[i]));
	}
	response.sendRedirect("listAllUsers.jsp");
	%>
</body>
</html>